<ion-header>
    <ion-toolbar content-page>
        <ion-buttons start>
            <button ion-button icon-only (click)="backClickHandle()">
                <i class="toolbar-back"></i>
            </button>
        </ion-buttons>
        <ion-title>
            资讯详情
        </ion-title>
        <ion-buttons end>
            <button ion-button icon-only adpmenutoggle>
                <i class="toolbar-menu"></i>
            </button>
        </ion-buttons>
    </ion-toolbar>
</ion-header>
<ion-content>
    <div *ngIf="requestStatus&&!infoDetail.id" class="no-data">
        <div class="no-data-img"><img src="./assets/images/common/icon_nodata.png"></div>
        <div class="no-data-txt">没有相关数据</div>
    </div>
    <div *ngIf="requestStatus&&infoDetail.id">
        <div class="info-header" *ngIf="requestStatus">
            <div class="title-txt">{{infoDetail.title}}</div>
            <div class="title-bar device-pixel-border-bottom">
                <span class="time">{{infoDetail.time?(infoDetail.time*1000|date:'yyyy/MM/dd HH:mm'):''}}</span>
                <span class="btn-panel" [class.perview]="!collectBtnStatus">
                    <span class="share-btn set-btn" *ngIf="requestStatus&&!outLinkUrl&&azureInfo" (click)="showShareMenu = true">
                        分享
                    </span>
                    <span class="collect-btn set-btn" *ngIf="collectBtnStatus" (click)="setInfoCollect()"
                          [class.collected]="collectStatus">
                        {{!collectStatus?'收藏':'已收藏'}}
                    </span>
                </span>
            </div>
        </div>
        <div class="info-bd" info-render-listener (rightClickEvent)="renderEnd($event)"
             [innerHtml]="infoDetail.content | htmlCss" *ngIf="requestStatus&&!outLinkUrl">

        </div>
        <iframe id="myFrame" [src]="outLinkUrl" frameborder="0" scrolling="yes"
                *ngIf="requestStatus&&outLinkUrl"></iframe>

        <div class="info-file" *ngIf="requestStatus &&!outLinkUrl&&attachFiles && attachFiles.length > 0">
            <div class="title"><i></i><span>附件</span></div>
            <div class="link" *ngFor="let af of attachFiles" (click)="openAttachFile(af.fileUrl,af.fileName)">
                {{af.fileName}}
            </div>
        </div>
    </div>
</ion-content>
<div class="share-menu" (click)="showShareMenu = false" [ngClass]="{'is-show':showShareMenu}">
    <div class="tools">
        <div class="share-friend">
            <div class="inner" (click)="shareInfo(0)">
                <div class="icon"></div>
                <div>
                    分享给朋友
                </div>
            </div>
        </div>
        <div class="share-moment">
            <div class="inner" (click)="shareInfo(1)">
                <div class="icon"></div>
                <div>
                    分享到朋友圈
                </div>
            </div>
        </div>
    </div>
</div>
